#include <stdio.h>
int main()
{
	int i,j,f,mul,count=0;
	while(scanf("%d", &f)!=EOF)
	{
		count++;
		if(count!=1)
			printf("\n");
		for(i=1; i<=f; i++)
			for(j=1; j<=i; j++)
			{
				mul=j*i;
				if(j==i)
					printf("%d*%d=%d\n",j,i,mul);
				else
					printf("%d*%d=%-3d",j,i,mul);
			}
	}
	return 0;
}
